package NWish.properties
{
	import NWish.Misc;

	public class OtherPropertiesTypes
	{
		private var _types:Array;
		public function OtherPropertiesTypes(otherProperties:Array)
		{
			_types = otherProperties;
		}
		
		public function get types()
		{
			return _types;
		}
		
		public function getPropertiesType(obj)
		{
			for each (var p in _types)
			{
				if(p.isClass(obj))
				{
					return p;
				}
				/*else if(Misc.isClass(obj,p.type))
				//if(obj is p.type)
				{
					return p;
				}*/
			}
			
			return null;
		}
		
		public function toString()
		{
			return 'other properties';
		}
	}
}